<!DOCTYPE html>
<html lang='en'>

<head>
    <meta charset='UTF-8'>
    <meta http-equiv='X-UA-Compatible' content='IE=edge'>
    <meta name='viewport' content='width=device-width, initial-scale=1.0'>
    <title>Document</title>
    <script src='../../vue.js'></script>
</head>

<body>
    <div id='app'>
        <form action="###">
            <!-- 下拉列表单选时,data中也是使用字符串保存 -->
            请选择你喜欢的城市
            <select name="city" v-model="city">
                <option value="北京">北京</option>
                <option value="上海">上海</option>
                <option value="广州">广州</option>
                <option value="深圳">深圳</option>
                <option value="曹县">曹县</option>
            </select>

            <select name="food" multiple v-model="food">
                <option value="老干妈">老干妈</option>
                <option value="臭豆腐">臭豆腐</option>
                <option value="热干面">热干面</option>
                <option value="周黑鸭">周黑鸭</option>
            </select>
        </form>
    </div>
    <script>
        Vue.config.productionTip = false;
        const vm = new Vue({
            el: '#app',
            data() {
                return {
                    city:'河南',
                    food:[]
                }
            }
        })
    </script>
</body>

</html>